Skip to content

refactor: archive quantity package to autolens_workspace_developer/legacy#437

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/archive-quantity-package
May 22, 2026
Merged

refactor: archive quantity package to autolens_workspace_developer/legacy#437
Jammy2211 merged 1 commit into
mainfrom
feature/archive-quantity-package

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

  • Archive the quantity package — FitQuantity, AnalysisQuantity, DatasetQuantity, VisualizerQuantity, PlotterQuantity, ResultQuantity — that has no real users and was blocking JAX porting work.
  • Frozen copy preserved at autolens_workspace_developer/legacy/quantity/ with README + restore instructions (separate PR on that repo).

Changes

Removed:

  • autogalaxy/quantity/ — source tree (10 files)
  • test_autogalaxy/quantity/ — test tree (10 files incl. .fits fixtures)
  • from .quantity.fit_quantity import FitQuantity, ... AnalysisQuantity, ... DatasetQuantity from autogalaxy/__init__.py
  • subplot_fit_quantity re-export from autogalaxy/plot/__init__.py
  • 4 make_*_quantity_7x7_* factory functions from autogalaxy/fixtures.py
  • Matching @pytest.fixture entries from test_autogalaxy/conftest.py
  • fit_quantity: stanzas from autogalaxy/config/visualize/plots.yaml and test_autogalaxy/config/visualize.yaml
  • AnalysisQuantity autosummary entry from docs/api/modeling.rst
  • "Quantity" section + FitQuantity autosummary from docs/api/fitting.rst
  • "Quantity Fit Subplots" section + subplot_fit_quantity autosummary from docs/api/plot.rst
  • AnalysisQuantity mention from autogalaxy/analysis/analysis/analysis.py docstring
  • FitQuantity, AnalysisQuantity lines from AGENTS.md and CLAUDE.md

Test plan

  • pytest test_autogalaxy/ -x -q908 passed in 20s
  • Structural grep across the repo returns zero hits for FitQuantity|AnalysisQuantity|DatasetQuantity|subplot_fit_quantity|fit_quantity:|quantity_7x7
  • python -c "import autogalaxy as ag; assert not hasattr(ag, 'FitQuantity')" passes for all three classes + subplot_fit_quantity

Ship order

This is one of two library PRs that should land before the downstream workspace PRs. Pairs with the PyAutoLens PR (also feature/archive-quantity-package).

🤖 Generated with Claude Code

…gacy

The FitQuantity / AnalysisQuantity / DatasetQuantity stack has no real
users and was blocking JAX migration. Removed the quantity/ source tree,
re-exports, test directory, config stanzas, docs/api entries, and the
fixtures / conftest entries that supported the deleted tests. A frozen
copy lives at autolens_workspace_developer/legacy/quantity/ for future
restore.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit 02c9f5f into main May 22, 2026
6 checks passed
@Jammy2211 Jammy2211 deleted the feature/archive-quantity-package branch May 22, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant